package operation;

import book.BookList;

public class ExitSystem implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("退出系统");
        for (int i = 0; i < bookList.getUsedSize(); i++) {
            bookList.setBook(null,i);
        }
        System.exit(0);

    }
}
